package com.lms.logistics_management_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lms.logistics_management_system.entity.Measure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MeasureMapper extends BaseMapper<Measure> {

    @Update("UPDATE measure SET measure_result=#{measureResult} WHERE " +
            "measure_kind_id=#{measureKindId} AND diagnostic_id=#{diagnosticId} AND doctor_id=#{doctorId}")
    boolean updateResult(Integer measureKindId, Integer diagnosticId, Integer doctorId, String measureResult);
}
